package lab02.test09;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Student student = new Student();
        System.out.println("请输入学生的姓名：");
        student.setName(sc.next());
        System.out.println("请输入学生的学号：");
        student.setSno(sc.next());
        System.out.println("请输入学生的班号：");
        student.setClassno(sc.next());
        System.out.println("请输入学生的性别：");
        student.setSex(sc.next());
        System.out.println("请输入学生的年龄：");
        student.setAge(sc.nextInt());
        System.out.println(student.toString());

    }
}
